﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp14
{
    class Program
    {
        static void Main(string[] args)
        {

            ArrayList bbb = new ArrayList() { "黄燕鸿", "江鑫宇", "黄志浩", "阮灿斌","abc","ccc","aaa",1,8,9 };
            int index = bbb.IndexOf("黄");
            if (index != -1)
            {
                Console.WriteLine("找到了");
            }
            else
            {
                Console.WriteLine("没找到你还是太年轻啊");
            }

            //合并插入
            ArrayList list = new ArrayList() { "c旮","d旯","abc","acd","bbd",8,6,2};
            ArrayList air = new ArrayList() { "a犄", "b角" };
            list.InsertRange(0, air);
            foreach (var zzz in list)
            {
                Console.WriteLine(zzz);
            }
            Console.WriteLine();
            Console.WriteLine();

            //Sort 排序
            ArrayList list02 = new ArrayList() { "sdf","hgn","vfv","dff","acsd","nj"};
            list02.Sort();
            foreach (var ss in list02)
            {
                Console.WriteLine(ss);
            }
            
            
        }
    }
}
